Conditions | 2 |
Total Lines | 17 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { Component, ReactNode } from 'react' |
||
21 | } |
||
22 | |||
23 | render() { |
||
24 | if (this.state.error) { |
||
25 | return ( |
||
26 | <div className="flex flexCol flexAlCent"> |
||
27 | <Text className="mb32 mt32" tag="h2"> |
||
28 | Something went wrong |
||
29 | </Text> |
||
30 | <Button onClick={() => window.history.go()}> |
||
31 | <Text tag="span">Refresh Page</Text> |
||
32 | </Button> |
||
33 | </div> |
||
34 | ) |
||
35 | } |
||
36 | |||
37 | return this.props.children |
||
38 | } |
||
42 |